package com.qy.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 create table ai_chat_message(
 id int primary key auto_increment,
 session_id int,
 user_id int,
 role varchar(255),
 model varchar(255),
 content varchar(255),
 create_time datetime
 );
 */
@Data
@TableName("ai_chat_message")
public class AiChatMessage {
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long sessionId;
    private Long userId;
    private String role;
    private String model;

    private String content;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}
